

<?php

$validation_errors = validation_errors();

$form_attributes = array(
	'class' => 'form-signin' 
	);

echo form_open('login/new_user_registration',$form_attributes);

?>

<img src="<?php echo base_url("/assets/img/logo.jpg")?>" alt="COTEE Logo" style="position: relative; left: 20%;">

<?php
if(isset($message_display))	{
					echo '<div class="alert alert-danger" role="alert" style="text-align: center;">';
					echo '<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>';
					echo '<span class="sr-only">Error:</span>';
					echo $message_display; 
					echo "</div>";}

if($validation_errors!='')	{
					echo '<div class="alert alert-danger" role="alert" style="text-align: center;">';
					//echo '<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>';
					echo '<span class="sr-only">Error:</span>';
					echo '<p>' . $validation_errors . '</p>'; 
					echo "</div>";}

$label_attributes = array(
	'class' => 'sr-only'
	);
echo form_label('Ime i prezime','name',$label_attributes);
echo '<input type="text" name="name" class="form-control" id="name" placeholder="Ime i prezime" required autofocus>';

$label2_attributes = array(
	'class' => 'sr-only'
	);
echo form_label('Korisnicko ime','username',$label2_attributes);

echo '<input type="text" name="username" class="form-control" id="username" placeholder="Korisnicko ime" required autofocus>';


$label3_attributes = array(
	'class' => 'sr-only'
	);
echo form_label('Email','email_value',$label3_attributes);
$data = array(
'type' => 'email',
'name' => 'email_value',
'id' => 'email_value',
'class' => 'form-control',
'placeholder' => 'Email'
);
echo form_input($data);

echo '<label for="password" class="sr-only">Lozinka</label>';
echo '<input type="password" name="password" id="password" class="form-control" placeholder="Lozinka" required>';

echo '<button class="btn btn-lg btn-primary btn-block" type="submit">Registruj se</button>';
echo '<a href="' . base_url() . '" class="btn btn-default btn-block">Uloguj se</a>';
echo form_close();  
?>




</body>
</html>